package com.apusic.service;

import java.util.List;

import com.apusic.dao.TBaseOrganizeDao;
import com.apusic.entity.TBaseOrganize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service("tbaseOrganizeService")
public class TBaseOrganizeService {

	@Autowired
	private TBaseOrganizeDao tbaseOrganizeDao;

	public List<TBaseOrganize> getOrganizeList(){
		return tbaseOrganizeDao.getOrganizeList();
	};
	
	public int saveOrganize(TBaseOrganize tbaseOrganize) {
		return tbaseOrganizeDao.insert(tbaseOrganize);
	}
	
	public List<TBaseOrganize> getOrgJson(TBaseOrganize tbaseOrganize) {
		return tbaseOrganizeDao.selectByObj(tbaseOrganize);
	}
}
